change the value of a number all within the matrix